/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
package control.thuoc;

import java.util.Iterator;
import java.util.List;
import javax.swing.JComboBox;
import model.dao.ncc.NhaCungCapDAO;
import model.entity.NhaCungCap;

/**
 *
 * @author luanp_000
 */
public class NhaCungCap_ctrl {

    public static void loadAllNCC(JComboBox<NhaCungCap> jcbox) {
        List<NhaCungCap> list1 = NhaCungCapDAO.loadAllNCC();
        for (Iterator<NhaCungCap> it = list1.iterator(); it.hasNext();) {
            jcbox.addItem(it.next());
        }
    }
}
